<?php

namespace App\Http\Controllers;

use App\Http\Legend;
use App\Models\AdvertisementDetail;

class AdvertisementDetailController extends Controller
{
    public function getInfo()
    {
        $id = request()->input('id', 0);
        $info = AdvertisementDetail::find($id);
        if ($info) {
            return response()->json(
                [
                    'recode' => 1,
                    'info' => $info,
                ]
            );
        }

    }
}
